package org.hospital.entity;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * Ip entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="ip"
    ,catalog="hospital"
)

public class Ip  implements java.io.Serializable {


    // Fields    

     private Integer ipId;
     private Integer clinicId;
     private String ip;


    // Constructors

    /** default constructor */
    public Ip() {
    }

    
    /** full constructor */
    public Ip(Integer clinicId, String ip) {
        this.clinicId = clinicId;
        this.ip = ip;
    }

   
    // Property accessors
    @Id @GeneratedValue
    
    @Column(name="ipId", unique=true, nullable=false)

    public Integer getIpId() {
        return this.ipId;
    }
    
    public void setIpId(Integer ipId) {
        this.ipId = ipId;
    }
    
    @Column(name="clinicId", nullable=false)

    public Integer getClinicId() {
        return this.clinicId;
    }
    
    public void setClinicId(Integer clinicId) {
        this.clinicId = clinicId;
    }
    
    @Column(name="ip", nullable=false, length=50)

    public String getIp() {
        return this.ip;
    }
    
    public void setIp(String ip) {
        this.ip = ip;
    }
   








}